package com.shoppingwebsite.service;

import com.shoppingwebsite.domain.YtGoods;

import java.util.List;

public interface GoodsService {
    //获得所有商品数据
    public List<YtGoods> selectAll();

    //根据搜索名称，查询商品
    public List<YtGoods> selectByName(String name);

    //购买商品
    public void buyGoods(String names);

    //根据销量排序
    public List<YtGoods> search(String sort);
}
